package top.healthylife.gateway.platform.baihang.api.api.operatorproduct;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.baihang.api.util.BaiHangHttpUtil;
import top.healthylife.gateway.platform.baihang.dto.operatorproduct.mbasu013.req.BHReqPhoneJuneHaltDto;
import top.healthylife.gateway.platform.baihang.dto.operatorproduct.mbasu013.res.BHResPhoneJuneHaltDto;

/**
 * 手机近 6 个月欠费停机次数
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "手机近6个月欠费停机次数" , info = "核查手机号码欠费停机次数（支持联通、移动）")
public class BHPhoneJuneHaltApi implements ParentFace<BHReqPhoneJuneHaltDto, BHResPhoneJuneHaltDto> {

    private static final String PRODUCT_CODE = "MBASUT13";

    @Override
    public BHResPhoneJuneHaltDto execute(BHReqPhoneJuneHaltDto reqDto){
        return BaiHangHttpUtil.httpPostRequest(reqDto,PRODUCT_CODE, BHResPhoneJuneHaltDto.class);
    }
}
